Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix panic triggered by boxed Channel instances #932

Merged
merged 1 commit into from
Oct 31, 2022

Conversation

rf-figma
Copy link

This fixes a bug that can be triggered when there's a JsBox holding an instance of Channel at the moment the VM stops (e.g., when quitting an Electron app). The Channel's drop implementation calls self.send, which panics with a SendError because we're already in the middle of tearing everything down.

This fixes a bug that can be triggered when there's a JsBox holding an
instance of Channel at the moment the VM stops (e.g., when quitting an
Electron app). The Channel's `drop` implementation calls `self.send`,
which panics with a SendError because we're already in the middle of
tearing everything down.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants